package com.iwhalecloud.citybrain.flow.platform.manager.domain.repository;

import java.util.List;

import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.FlowBusi;
import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.FlowBusiAddVo;
import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.FlowBusiUpdateVo;

/**
 * @author lilh
 * @date 2019-01-22 16:33
 */
public interface FlowBusiRepository {

    /**
     * 增加
     */
    Integer insert(FlowBusiAddVo flowBusiAddVo);

    /**
     * 获取应用关联业务列表
     * @return
     */
    List<FlowBusi> list(Integer appId);

    /**
     * 获取应用关联业务列表
     * @return
     */
    List<FlowBusi> list(List<Integer> appIds);

    /**
     * 信息
     * @param busiId
     * @return
     */
    FlowBusi detail(Integer busiId);

    /**
     * 更新
     * @param flowBusiUpdateVo
     * @return
     */
    boolean update(FlowBusiUpdateVo flowBusiUpdateVo);

    /**
     * 删除
     * @param busiId
     * @return
     */
    Integer delete(Integer busiId);
}
